package org.lzuploader.model;

import java.util.ResourceBundle;

/** This class contains general constants used by the program.
 * 
 * @author Emmanuel Cron
 *
 */
public final class Constants
{
    /** Current major release number of the program. */
    public static final String LZ_CURRENT_RELEASE_MAJOR = ResourceBundle.getBundle("conf").getString("LZUPLOADER_RELEASE_MAJOR");
    
    /** Current minor release number of the program. */
    public static final String LZ_CURRENT_RELEASE_MINOR = ResourceBundle.getBundle("conf").getString("LZUPLOADER_RELEASE_MINOR");
    
    /** Revision number of the program. */
    public static final String LZ_CURRENT_RELEASE_REVISION = ResourceBundle.getBundle("conf").getString("LZUPLOADER_RELEASE_REVISION");
    
    /** Max size of the file to send, in bytes. */
    public static final int MAX_FILE_SIZE = 5242880;
    
    /** Page on which test a server connection. */
    public static final String NET_UPLOAD_PAGE = "uploader_send.php";
    
    /** Word that the server should send if test is ok. */
    public static final String NET_OK = "OK";
    
    /** User cannot instantiate this class. */
    private Constants()
    {
        throw new UnsupportedOperationException();
    }
}
